package org.example.erpapiservicespringpgimpl.mapper;

import org.example.erpapicommon.model.TOrder;
import org.example.erpapicommon.model.TOrderDetail;
import org.example.erpapiservicespringpgimpl.entity.OrderDetailEntity;
import org.example.erpapiservicespringpgimpl.entity.OrderEntity;
import org.mapstruct.Mapper;

import java.util.List;

@Mapper(componentModel = "spring")
public interface OrderPageMapper {
    TOrder fromOrderEntityToOrder(OrderEntity orderEntity);
    TOrderDetail fromOrderDetailEntityToTOrderDetail(OrderDetailEntity orderDetailEntity);
    List<TOrderDetail> fromOrderDetailEntitiesToTOrderDetails(List<OrderDetailEntity> orderDetailDtoList);
    List<TOrder> fromOrderEntitiesToOrders(List<OrderEntity> orderDetailDtoList);
}
